export function userinfoList() {
    if (localStorage.getItem('token') != null) {
        // spc:学校党委 最高权限
        // cpc:学院党委 管理员权限
        // bc:支部 三级权限
        // dc:普通用户
        var userinfo = JSON.parse(localStorage.getItem('userinfo'))
        console.log(userinfo)
        if (userinfo.authority.length == 0 || userinfo.authority[0].authority == "dc") { //权限列表为空，默认为普通用户
            window.SITE_CONFIG['menuList'] = [{ //管理
                    children: [{
                            icon: "icon-copyright",
                            id: "1067246875800000053",
                            name: "我的基本信息",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000002",
                            sort: 0,
                            type: 0,
                            url: "sys/userinfo"
                        },
                        {
                            icon: "icon-compass",
                            id: "1067246875800000058",
                            name: "我的简历",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000002",
                            sort: 1,
                            type: 0,
                            url: "myinfo/notes"
                        },
                        {
                            icon: "icon-EURO",
                            id: "1067246875800000059",
                            name: "我的家庭成员信息",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000002",
                            sort: 2,
                            type: 0,
                            url: "myinfo/familymember"
                        }
                    ],
                    icon: "icon-meh",
                    id: "1067246875800000002",
                    name: "关于我的",
                    parentName: null,
                    permissions: null,
                    pid: 0,
                    sort: 0,
                    type: 0,
                    url: ""
                },
                {
                    children: [],
                    icon: "icon-edit",
                    id: "1067246875800000056",
                    name: "我的活动",
                    parentName: null,
                    permissions: null,
                    pid: "1067246875800000054",
                    sort: 1,
                    type: 0,
                    url: "myinfo/myactivity"
                }, {
                    children: [],
                    icon: "icon-dashboard",
                    id: "1067246875800000060",
                    name: "我的奖项",
                    parentName: null,
                    permissions: null,
                    pid: "1067246875800000057",
                    sort: 2,
                    type: 0,
                    url: "myinfo/awards"
                },
                { //党组织管理
                    children: [{
                            children: [],
                            icon: "icon-unorderedlist",
                            id: "1067246875800000025",
                            name: "党组织列表",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000035",
                            sort: 0,
                            type: 0,
                            url: "sys/PartyList"
                        },
                        {
                            children: [],
                            icon: "icon-fileprotect",
                            id: "1067246875800000040",
                            name: "我的组织关系转接历史",
                            parentName: null,
                            permissions: "",
                            pid: "1067246875800000035",
                            sort: 1,
                            type: 0,
                            url: "myinfo/TransferHistory"
                        },
                        {
                            children: [],
                            icon: "icon-solution",
                            id: "1067246875800000041",
                            name: "我的入党信息",
                            parentName: null,
                            permissions: "",
                            pid: "1067246875800000035",
                            sort: 2,
                            type: 0,
                            url: "myinfo/schedule"
                        },
                        {
                            icon: "icon-moneycollect",
                            id: "1067246875800000042",
                            name: "我的党费缴纳",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000035",
                            sort: 3,
                            type: 0,
                            url: "myinfo/mydues"
                        }
                    ],
                    icon: "icon-golden-fill",
                    id: "1067246875800000035",
                    name: "党组织管理",
                    parentName: null,
                    permissions: null,
                    pid: "0",
                    sort: 3,
                    type: 0,
                    url: null
                }, { //微分享
                    children: [],
                    icon: "icon-container",
                    id: "1067246875800000066",
                    name: "微分享",
                    parentName: null,
                    permissions: null,
                    pid: "1067246875800000065",
                    sort: 4,
                    type: 0,
                    url: "myinfo/wish"
                },
            ]
        } else if (userinfo.authority[0].authority == "spc") { //学校党委 最高权限
            window.SITE_CONFIG['menuList'] = [{ //管理
                    children: [{
                        icon: "icon-copyright",
                        id: "1067246875800000053",
                        name: "我的基本信息",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000001",
                        sort: 0,
                        type: 0,
                        url: "sys/userinfo"
                    }, {
                        icon: "icon-compass",
                        id: "1067246875800000058",
                        name: "我的简历",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000001",
                        sort: 1,
                        type: 0,
                        url: "myinfo/notes"
                    }, {
                        icon: "icon-dashboard",
                        id: "1067246875800000063",
                        name: "我的奖项",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000001",
                        sort: 2,
                        type: 0,
                        url: "myinfo/awards"
                    }, {
                        icon: "icon-EURO",
                        id: "1067246875800000059",
                        name: "我的家庭成员信息",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000001",
                        sort: 3,
                        type: 0,
                        url: "myinfo/familymember"
                    }],
                    icon: "icon-meh",
                    id: "1067246875800000001",
                    name: "关于我的",
                    parentName: null,
                    permissions: null,
                    pid: 0,
                    sort: 0,
                    type: 0,
                    url: ""
                },
                { //管理
                    children: [{
                            children: [],
                            icon: "icon-user",
                            id: "1067246875800000055",
                            name: "用户管理",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000002",
                            sort: 0,
                            type: 0,
                            url: "sys/user"
                        }, {
                            children: [],
                            icon: "icon-apartment",
                            id: "1067246875800000012",
                            name: "用户统计",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000002",
                            sort: 1,
                            type: 0,
                            url: "sys/dept"
                        },
                        //  {
                        //     children: [],
                        //     icon: "icon-trademark",
                        //     id: "1067246875800000016",
                        //     name: "学院管理",
                        //     parentName: null,
                        //     permissions: null,
                        //     pid: "1067246875800000002",
                        //     sort: 2,
                        //     type: 0,
                        //     url: "sys/college"
                        // },
                    ],
                    icon: "icon-safetycertificate",
                    id: "1067246875800000002",
                    name: "管理",
                    parentName: null,
                    permissions: null,
                    pid: "0",
                    sort: 1,
                    type: 0,
                    url: null
                },
                {
                    children: [{
                        icon: "icon-issuesclose",
                        id: "1067246875800000054",
                        name: "活动管理",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000056",
                        sort: 0,
                        type: 0,
                        url: "sys/activity"
                    }, {
                        icon: "icon-piechart",
                        id: "1067246875800000061",
                        name: "我的活动",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000056",
                        sort: 1,
                        type: 0,
                        url: "myinfo/myactivity"
                    }],
                    icon: "icon-edit",
                    id: "1067246875800000056",
                    name: "党组织管理活动",
                    parentName: null,
                    permissions: null,
                    pid: 0,
                    sort: 2,
                    type: 0,
                    url: null
                }, {
                    children: [{
                            icon: "icon-qrcode",
                            id: "1067246875800000014",
                            name: "党费缴纳列表",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000057",
                            sort: 0,
                            type: 0,
                            url: "sys/dues"
                        },
                        {
                            icon: "icon-YUAN",
                            id: "1067246875800000013",
                            name: "我的党费缴纳",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000057",
                            sort: 1,
                            type: 0,
                            url: "myinfo/mydues"
                        },
                    ],
                    icon: "icon-moneycollect",
                    id: "1067246875800000057",
                    name: "党费缴纳",
                    parentName: null,
                    permissions: null,
                    pid: "0",
                    sort: 3,
                    type: 0,
                    url: null
                }, { //党组织管理
                    children: [{
                            children: [],
                            icon: "icon-unorderedlist",
                            id: "1067246875800000025",
                            name: "党组织列表",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000035",
                            sort: 0,
                            type: 0,
                            url: "sys/PartyList"
                        },
                        {
                            children: [],
                            icon: "icon-solution",
                            id: "1067246875800000010",
                            name: "我的入党信息",
                            parentName: null,
                            permissions: "",
                            pid: "1067246875800000035",
                            sort: 1,
                            type: 0,
                            url: "myinfo/schedule"
                        },
                        //  {
                        //     children: [],
                        //     icon: "icon-fileprotect",
                        //     id: "1067246875800000040",
                        //     name: "党员组织关系记录",
                        //     parentName: null,
                        //     permissions: "",
                        //     pid: "1067246875800000035",
                        //     sort: 2,
                        //     type: 0,
                        //     url: "sys/Relationship"
                        // },
                        {
                            children: [],
                            icon: "icon-fileprotect",
                            id: "1067246875800000011",
                            name: "我的组织关系转接历史",
                            parentName: null,
                            permissions: "",
                            pid: "1067246875800000035",
                            sort: 3,
                            type: 0,
                            url: "myinfo/TransferHistory"
                        },
                    ],
                    icon: "icon-golden-fill",
                    id: "1067246875800000035",
                    name: "党组织管理",
                    parentName: null,
                    permissions: null,
                    pid: "0",
                    sort: 4,
                    type: 0,
                    url: null
                }, { //发展党员过程化管理
                    children: [],
                    icon: "icon-wrench",
                    id: "1067246875800000046",
                    name: "发展党员过程化管理",
                    parentName: null,
                    permissions: null,
                    pid: "1067246875800000050",
                    sort: 5,
                    type: 0,
                    url: "sys/process"
                }, { //微分享
                    children: [{
                        children: [],
                        icon: "icon-fileprotect",
                        id: "1067246875800000064",
                        name: "分享内容管理",
                        parentName: null,
                        permissions: "",
                        pid: "1067246875800000066",
                        sort: 0,
                        type: 0,
                        url: "sys/wishManage"
                    }, {
                        children: [],
                        icon: "icon-sync",
                        id: "1067246875800000067",
                        name: "分享广场",
                        parentName: null,
                        permissions: "",
                        pid: "1067246875800000066",
                        sort: 1,
                        type: 0,
                        url: "myinfo/wish"
                    }, ],
                    icon: "icon-container",
                    id: "1067246875800000066",
                    name: "微分享管理",
                    parentName: null,
                    permissions: null,
                    pid: "0",
                    sort: 6,
                    type: 0,
                    url: null
                },
            ]
        } else if (userinfo.authority[0].authority == "cpc") { //学院党委 管理员权限
            window.SITE_CONFIG['menuList'] = [{ //管理
                    children: [{
                        icon: "icon-copyright",
                        id: "1067246875800000053",
                        name: "我的基本信息",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000001",
                        sort: 0,
                        type: 0,
                        url: "sys/userinfo"
                    }, {
                        icon: "icon-compass",
                        id: "1067246875800000058",
                        name: "我的简历",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000001",
                        sort: 1,
                        type: 0,
                        url: "myinfo/notes"
                    }, {
                        icon: "icon-dashboard",
                        id: "1067246875800000063",
                        name: "我的奖项",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000001",
                        sort: 2,
                        type: 0,
                        url: "myinfo/awards"
                    }, {
                        icon: "icon-EURO",
                        id: "1067246875800000059",
                        name: "我的家庭成员信息",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000008",
                        sort: 3,
                        type: 0,
                        url: "myinfo/familymember"
                    }],
                    icon: "icon-meh",
                    id: "1067246875800000001",
                    name: "关于我的",
                    parentName: null,
                    permissions: null,
                    pid: 0,
                    sort: 0,
                    type: 0,
                    url: ""
                },
                { //管理
                    children: [{
                            children: [],
                            icon: "icon-user",
                            id: "1067246875800000055",
                            name: "用户管理",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000002",
                            sort: 0,
                            type: 0,
                            url: "sys/user"
                        }, {
                            children: [],
                            icon: "icon-apartment",
                            id: "1067246875800000012",
                            name: "用户统计",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000002",
                            sort: 1,
                            type: 0,
                            url: "sys/dept"
                        },
                        // {
                        //     children: [],
                        //     icon: "icon-trademark",
                        //     id: "1067246875800000016",
                        //     name: "学院管理",
                        //     parentName: null,
                        //     permissions: null,
                        //     pid: "1067246875800000002",
                        //     sort: 2,
                        //     type: 0,
                        //     url: "sys/college"
                        // },
                    ],
                    icon: "icon-safetycertificate",
                    id: "1067246875800000002",
                    name: "管理",
                    parentName: null,
                    permissions: null,
                    pid: "0",
                    sort: 1,
                    type: 0,
                    url: null
                },
                {
                    children: [{
                        icon: "icon-issuesclose",
                        id: "1067246875800000054",
                        name: "活动管理",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000056",
                        sort: 0,
                        type: 0,
                        url: "sys/activity"
                    }, {
                        icon: "icon-piechart",
                        id: "1067246875800000061",
                        name: "我的活动",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000056",
                        sort: 1,
                        type: 0,
                        url: "myinfo/myactivity"
                    }],
                    icon: "icon-edit",
                    id: "1067246875800000056",
                    name: "党组织管理活动",
                    parentName: null,
                    permissions: null,
                    pid: 0,
                    sort: 2,
                    type: 0,
                    url: null
                }, {
                    children: [{
                        icon: "icon-moneycollect",
                        id: "1067246875800000014",
                        name: "党费缴纳列表",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000057",
                        sort: 0,
                        type: 0,
                        url: "sys/dues"
                    }, {
                        icon: "icon-YUAN",
                        id: "1067246875800000013",
                        name: "我的党费缴纳",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000057",
                        sort: 1,
                        type: 0,
                        url: "myinfo/mydues"
                    }, ],
                    icon: "icon-moneycollect",
                    id: "1067246875800000057",
                    name: "党费缴纳",
                    parentName: null,
                    permissions: null,
                    pid: "0",
                    sort: 3,
                    type: 0,
                    url: null
                }, { //党组织管理
                    children: [{
                            children: [],
                            icon: "icon-unorderedlist",
                            id: "1067246875800000025",
                            name: "党组织列表",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000035",
                            sort: 0,
                            type: 0,
                            url: "sys/PartyList"
                        },
                        {
                            children: [],
                            icon: "icon-solution",
                            id: "1067246875800000010",
                            name: "我的入党信息",
                            parentName: null,
                            permissions: "",
                            pid: "1067246875800000035",
                            sort: 1,
                            type: 0,
                            url: "myinfo/schedule"
                        },
                        // {
                        //     children: [],
                        //     icon: "icon-fileprotect",
                        //     id: "1067246875800000040",
                        //     name: "党员组织关系记录",
                        //     parentName: null,
                        //     permissions: "",
                        //     pid: "1067246875800000035",
                        //     sort: 2,
                        //     type: 0,
                        //     url: "sys/Relationship"
                        // },
                        {
                            children: [],
                            icon: "icon-fileprotect",
                            id: "1067246875800000011",
                            name: "我的组织关系转接历史",
                            parentName: null,
                            permissions: "",
                            pid: "1067246875800000035",
                            sort: 3,
                            type: 0,
                            url: "myinfo/TransferHistory"
                        },
                    ],
                    icon: "icon-golden-fill",
                    id: "1067246875800000035",
                    name: "党组织管理",
                    parentName: null,
                    permissions: null,
                    pid: "0",
                    sort: 4,
                    type: 0,
                    url: null
                }, { //发展党员过程化管理
                    children: [],
                    icon: "icon-wrench",
                    id: "1067246875800000046",
                    name: "发展党员过程化管理",
                    parentName: null,
                    permissions: null,
                    pid: "1067246875800000050",
                    sort: 5,
                    type: 0,
                    url: "sys/process"
                }, { //微分享
                    children: [{
                        children: [],
                        icon: "icon-fileprotect",
                        id: "1067246875800000064",
                        name: "分享内容管理",
                        parentName: null,
                        permissions: "",
                        pid: "1067246875800000066",
                        sort: 0,
                        type: 0,
                        url: "sys/wishManage"
                    }, {
                        children: [],
                        icon: "icon-sync",
                        id: "1067246875800000067",
                        name: "分享广场",
                        parentName: null,
                        permissions: "",
                        pid: "1067246875800000066",
                        sort: 1,
                        type: 0,
                        url: "myinfo/wish"
                    }, ],
                    icon: "icon-container",
                    id: "1067246875800000066",
                    name: "微分享管理",
                    parentName: null,
                    permissions: null,
                    pid: "0",
                    sort: 6,
                    type: 0,
                    url: null
                },
            ]
        } else if (userinfo.authority[0].authority == "bc") { //支部 三级权限
            window.SITE_CONFIG['menuList'] = [{ //管理
                    children: [{
                        icon: "icon-copyright",
                        id: "1067246875800000053",
                        name: "我的基本信息",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000001",
                        sort: 0,
                        type: 0,
                        url: "sys/userinfo"
                    }, {
                        icon: "icon-compass",
                        id: "1067246875800000058",
                        name: "我的简历",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000001",
                        sort: 1,
                        type: 0,
                        url: "myinfo/notes"
                    }, {
                        icon: "icon-dashboard",
                        id: "1067246875800000063",
                        name: "我的奖项",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000001",
                        sort: 2,
                        type: 0,
                        url: "myinfo/awards"
                    }, {
                        icon: "icon-EURO",
                        id: "1067246875800000059",
                        name: "我的家庭成员信息",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000001",
                        sort: 3,
                        type: 0,
                        url: "myinfo/familymember"
                    }],
                    icon: "icon-meh",
                    id: "1067246875800000001",
                    name: "关于我的",
                    parentName: null,
                    permissions: null,
                    pid: 0,
                    sort: 0,
                    type: 0,
                    url: ""
                },
                { //管理
                    children: [{
                            children: [],
                            icon: "icon-user",
                            id: "1067246875800000055",
                            name: "用户管理",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000002",
                            sort: 0,
                            type: 0,
                            url: "sys/user"
                        }, {
                            children: [],
                            icon: "icon-apartment",
                            id: "1067246875800000012",
                            name: "用户统计",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000002",
                            sort: 1,
                            type: 0,
                            url: "sys/dept"
                        },
                        // {
                        //     children: [],
                        //     icon: "icon-trademark",
                        //     id: "1067246875800000016",
                        //     name: "学院管理",
                        //     parentName: null,
                        //     permissions: null,
                        //     pid: "1067246875800000002",
                        //     sort: 2,
                        //     type: 0,
                        //     url: "sys/college"
                        // },
                    ],
                    icon: "icon-safetycertificate",
                    id: "1067246875800000002",
                    name: "管理",
                    parentName: null,
                    permissions: null,
                    pid: "0",
                    sort: 1,
                    type: 0,
                    url: null
                },
                {
                    children: [{
                        icon: "icon-issuesclose",
                        id: "1067246875800000054",
                        name: "活动管理",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000056",
                        sort: 0,
                        type: 0,
                        url: "sys/activity"
                    }, {
                        icon: "icon-piechart",
                        id: "1067246875800000061",
                        name: "我的活动",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000056",
                        sort: 1,
                        type: 0,
                        url: "myinfo/myactivity"
                    }],
                    icon: "icon-edit",
                    id: "1067246875800000056",
                    name: "党组织管理活动",
                    parentName: null,
                    permissions: null,
                    pid: 0,
                    sort: 2,
                    type: 0,
                    url: null
                }, {
                    children: [{
                        icon: "icon-moneycollect",
                        id: "1067246875800000014",
                        name: "党费缴纳列表",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000057",
                        sort: 0,
                        type: 0,
                        url: "sys/dues"
                    }, {
                        icon: "icon-YUAN",
                        id: "1067246875800000013",
                        name: "我的党费缴纳",
                        parentName: null,
                        permissions: null,
                        pid: "1067246875800000057",
                        sort: 1,
                        type: 0,
                        url: "myinfo/mydues"
                    }, ],
                    icon: "icon-moneycollect",
                    id: "1067246875800000057",
                    name: "党费缴纳",
                    parentName: null,
                    permissions: null,
                    pid: "0",
                    sort: 3,
                    type: 0,
                    url: null
                }, { //党组织管理
                    children: [{
                            children: [],
                            icon: "icon-unorderedlist",
                            id: "1067246875800000025",
                            name: "党组织列表",
                            parentName: null,
                            permissions: null,
                            pid: "1067246875800000035",
                            sort: 0,
                            type: 0,
                            url: "sys/PartyList"
                        },
                        {
                            children: [],
                            icon: "icon-solution",
                            id: "1067246875800000010",
                            name: "我的入党信息",
                            parentName: null,
                            permissions: "",
                            pid: "1067246875800000035",
                            sort: 1,
                            type: 0,
                            url: "myinfo/schedule"
                        },
                        // {
                        //     children: [],
                        //     icon: "icon-fileprotect",
                        //     id: "1067246875800000040",
                        //     name: "党员组织关系记录",
                        //     parentName: null,
                        //     permissions: "",
                        //     pid: "1067246875800000035",
                        //     sort: 2,
                        //     type: 0,
                        //     url: "sys/Relationship"
                        // },
                        {
                            children: [],
                            icon: "icon-fileprotect",
                            id: "1067246875800000011",
                            name: "我的组织关系转接历史",
                            parentName: null,
                            permissions: "",
                            pid: "1067246875800000035",
                            sort: 3,
                            type: 0,
                            url: "myinfo/TransferHistory"
                        },
                    ],
                    icon: "icon-golden-fill",
                    id: "1067246875800000035",
                    name: "党组织管理",
                    parentName: null,
                    permissions: null,
                    pid: "0",
                    sort: 4,
                    type: 0,
                    url: null
                }, { //发展党员过程化管理
                    children: [],
                    icon: "icon-wrench",
                    id: "1067246875800000046",
                    name: "发展党员过程化管理",
                    parentName: null,
                    permissions: null,
                    pid: "1067246875800000050",
                    sort: 5,
                    type: 0,
                    url: "sys/process"
                }, { //微分享
                    children: [{
                        children: [],
                        icon: "icon-fileprotect",
                        id: "1067246875800000064",
                        name: "分享内容管理",
                        parentName: null,
                        permissions: "",
                        pid: "1067246875800000066",
                        sort: 0,
                        type: 0,
                        url: "sys/wishManage"
                    }, {
                        children: [],
                        icon: "icon-sync",
                        id: "1067246875800000067",
                        name: "分享广场",
                        parentName: null,
                        permissions: "",
                        pid: "1067246875800000066",
                        sort: 1,
                        type: 0,
                        url: "myinfo/wish"
                    }, ],
                    icon: "icon-container",
                    id: "1067246875800000066",
                    name: "微分享管理",
                    parentName: null,
                    permissions: null,
                    pid: "0",
                    sort: 6,
                    type: 0,
                    url: null
                },
            ]
        }
    }
}